﻿using UnityEngine;
using System.Collections;

public class BossListModel : MonoBehaviour
{
	public int bossId;

	public Material bodyMaterial;
	public Material headMaterial;
	public Material magmaMaterial;
	public Material wingMaterial;

	public SkinnedMeshRenderer skinnedMeshRenderer;

	Material[] swappingMaterial;

	void Awake()
	{
		switch(bossId)
		{
		case 10001:
			swappingMaterial = new Material[4];
			swappingMaterial[0] = wingMaterial;
			swappingMaterial[1] = magmaMaterial;
			swappingMaterial[2] = bodyMaterial;
			swappingMaterial[3] = headMaterial;
			skinnedMeshRenderer.materials = swappingMaterial;

			break;
		case 10002:
			swappingMaterial = new Material[3];
			swappingMaterial[0] = bodyMaterial;
			swappingMaterial[1] = headMaterial;
			swappingMaterial[2] = wingMaterial;
			skinnedMeshRenderer.materials = swappingMaterial;
			break;
		}
	}
}